function form_submit(){
	document.getElementById('login').submit();
}

function getxhr(){
	var xhr = false;
	if(window . XMLHttpRequest){
		xhr = new XMLHttpRequest();
	}else{
		xhr = window . ActiveXObject('Microsoft . XMLHttp');
	}
	return xhr;
}

window.onload = function (){
	
	var safecode = document . getElementById('safecode');
	safecode . onclick = function (){
		safecode . src = "images/login_captcha.php?act="+Math.random(); 
	}
	
}




